﻿<!DOCTYPE html> 
<html> 
    <head> 
        <meta charset="utf-8" />
        <title>@ViewBag.Title</title> 
        <meta name="viewport" content="width=device-width" />
        <link rel="stylesheet" href="@Url.Content("~/Content/jquery.mobile-1.0b3.min.css")" />
        <link rel="stylesheet" href="@Url.Content("~/Content/Site.Mobile.css")" />
        <script type="text/javascript" src="@Url.Content("~/Scripts/jquery-1.6.4.min.js")"></script>
        <script type="text/javascript">
            $(document).bind("mobileinit", function() {
                // As of Beta 2, jQuery Mobile's Ajax navigation does not work in all cases (e.g.,
                // when navigating from a mobile to a non-mobile page), hence disabling it.
                $.mobile.ajaxEnabled = false;
            });
        </script>
        <script type="text/javascript" src="@Url.Content("~/Scripts/jquery.mobile-1.0b3.min.js")"></script>
    </head> 
<body> 

    <div data-role="page" >

        <div data-role="header" data-theme="b"  data-add-back-btn="true">
        <a href="#" data-rel="back" data-role="button" >@SchoolProject2012.Langue.Resources.retour</a>
            <h1>@ViewBag.Title</h1>@Html.ActionLink(SchoolProject2012.Langue.Resources.accueil, "Index","Home", new { area = "Shared", langue = ViewBag.langue }, new { data_role = "button" }) @Html.ActionLink("FR", null, new { langue = "fr" }, new { @class = "lang fr" }) @Html.ActionLink("EN", null, new { langue = "en" }, new { @class = "lang en" })
        </div>

        <div data-role="content" data-theme="c">
            @RenderSection("featured", false)
            @RenderBody()		
        </div>

        <div data-role="footer" data-theme="b" data-position="fixed"> 
	        <h4>@if (Session["login"] != null) { @Html.ActionLink(SchoolProject2012.Langue.Resources.deconnexion, "deconnexion", new { area = "Shared", controller = "log" }, new { data_role = "button" });
                }
                else { @Html.ActionLink(SchoolProject2012.Langue.Resources.connexion, "connexion", new { area = "Shared", langue = ViewBag.langue, controller = "log" }, new { data_role="button" }) }
            </h4> 
        </div> 
    </div>

</body>
</html>